package com.zwps.biz.domain.converter;

import com.zwps.biz.api.model.dto.dept.AddDeptDTO;
import com.zwps.biz.api.model.dto.dict.AddDictDTO;
import com.zwps.biz.api.model.vo.dept.DeptTreeVO;
import com.zwps.biz.api.model.vo.dict.DictTreeVO;
import com.zwps.biz.dal.db.object.DeptDO;
import com.zwps.biz.dal.db.object.DictDO;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface DictConverter {
    DictConverter INSTANCE = Mappers.getMapper(DictConverter.class);

    DictDO toDictDO(AddDictDTO dto);


    DictTreeVO toDictTreeVO(DictDO dict);
}
